import request from '@/utils/request'

// 查询设备大类列表
export function listDl(query) {
  return request({
    url: '/device/dl/list',
    method: 'get',
    params: query
  })
}

// 查询设备大类详细
export function getDl(id) {
  return request({
    url: '/device/dl/' + id,
    method: 'get'
  })
}

// 新增设备大类
export function addDl(data) {
  return request({
    url: '/device/dl',
    method: 'post',
    data: data
  })
}

// 修改设备大类
export function updateDl(data) {
  return request({
    url: '/device/dl',
    method: 'put',
    data: data
  })
}

// 删除设备大类
export function delDl(id) {
  return request({
    url: '/device/dl/' + id,
    method: 'delete'
  })
}
